package com.apps.ftapp.model;

import java.util.List;

/**
 * Created by lyli on 2017/11/1.
 */

public class PreOrderModel {


    /**
     * success : 1
     * iffree : 0
     * course : {"id":"210","title":"第二批：预售\u201c押题神卷\u201d2018最新版 全真考场押题试卷（上册）","status":"published","price":"0.10","startTime":"1506482691","endTime":"1514736000","endShopTime":"1514736000","studentNum":"317","maxStudentNum":"1000","about":"<p> <\/p>\n\n<p> <\/p>\n\n<p><span style=\"color:rgb(255,0,0);\"><strong><span style=\"font-size:20px;\">现在为第二批预售阶段，限量1000本，预计<\/span><span style=\"font-size:26px;\">10月10日<\/span><span style=\"font-size:20px;\">陆续发货，原价49元。<\/span><\/strong><\/span><\/p>\n\n<p> <\/p>\n\n<p><span style=\"color:rgb(255,0,0);\"><strong><span style=\"font-size:20px;\">现在预定价格29元，预计<\/span><span style=\"font-size:26px;\"> <\/span><span style=\"font-size:28px;\">10<\/span><span style=\"font-size:26px;\">月10日<\/span><span style=\"font-size:20px;\"> 陆续发货。<\/span><\/strong><\/span><\/p>\n\n<p> <\/p>\n\n<p><span style=\"color:rgb(255,0,0);\"><strong><span style=\"font-size:20px;\">仅限售1000本！<\/span><\/strong><\/span><\/p>\n","question":"<p> <\/p>\n\n<p><span style=\"font-size:22px;\">快递默认中通包邮，书籍按照购买限售顺序<\/span><\/p>\n\n<p><span style=\"font-size:22px;\">发货，请购买时一定填写正确的收货地址信息，以防<\/span><\/p>\n\n<p><span style=\"font-size:22px;\">耽误你的收货时间，如有问题，请联系图书部袁老师<\/span><\/p>\n\n<p><span style=\"font-size:22px;\">15653863205（微信同号）<\/span><\/p>\n","qqqun":"","book":"1","isbook":"1","largePicture":"http://www.iweishi.cn/files/default/2017/09-27/143643bd9c30299246.jpg","buyable":"1","type":"normal","teacherIds":["43"]}
     * address : [{"address_id":"2380","user_id":"1","user_name":"Liu ","province":"山东","city":"烟台","district":"芝罘区","address":"Hhhhh ","mobile":"18812341234"},{"address_id":"2379","user_id":"1","user_name":"看看","province":"北京","city":"北京","district":"朝阳区","address":"可口可乐","mobile":"5&^87665"}]
     * coupons : {"coupcounts":"0","couponslist":[],"text":"暂无可用优惠券"}
     */

    private int success;
    private String error;
    private int iffree;
    private CourseBean course;
    private CouponsBean coupons;
    private List<AddressBean> address;

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public int getIffree() {
        return iffree;
    }

    public void setIffree(int iffree) {
        this.iffree = iffree;
    }

    public CourseBean getCourse() {
        return course;
    }

    public void setCourse(CourseBean course) {
        this.course = course;
    }

    public CouponsBean getCoupons() {
        return coupons;
    }

    public void setCoupons(CouponsBean coupons) {
        this.coupons = coupons;
    }

    public List<AddressBean> getAddress() {
        return address;
    }

    public void setAddress(List<AddressBean> address) {
        this.address = address;
    }

    public static class CourseBean {
        /**
         * id : 210
         * title : 第二批：预售“押题神卷”2018最新版 全真考场押题试卷（上册）
         * status : published
         * price : 0.10
         * startTime : 1506482691
         * endTime : 1514736000
         * endShopTime : 1514736000
         * studentNum : 317
         * maxStudentNum : 1000
         * about : <p> </p>
         * <p>
         * <p> </p>
         * <p>
         * <p><span style="color:rgb(255,0,0);"><strong><span style="font-size:20px;">现在为第二批预售阶段，限量1000本，预计</span><span style="font-size:26px;">10月10日</span><span style="font-size:20px;">陆续发货，原价49元。</span></strong></span></p>
         * <p>
         * <p> </p>
         * <p>
         * <p><span style="color:rgb(255,0,0);"><strong><span style="font-size:20px;">现在预定价格29元，预计</span><span style="font-size:26px;"> </span><span style="font-size:28px;">10</span><span style="font-size:26px;">月10日</span><span style="font-size:20px;"> 陆续发货。</span></strong></span></p>
         * <p>
         * <p> </p>
         * <p>
         * <p><span style="color:rgb(255,0,0);"><strong><span style="font-size:20px;">仅限售1000本！</span></strong></span></p>
         * <p>
         * question : <p> </p>
         * <p>
         * <p><span style="font-size:22px;">快递默认中通包邮，书籍按照购买限售顺序</span></p>
         * <p>
         * <p><span style="font-size:22px;">发货，请购买时一定填写正确的收货地址信息，以防</span></p>
         * <p>
         * <p><span style="font-size:22px;">耽误你的收货时间，如有问题，请联系图书部袁老师</span></p>
         * <p>
         * <p><span style="font-size:22px;">15653863205（微信同号）</span></p>
         * <p>
         * qqqun :
         * book : 1
         * isbook : 1
         * largePicture : http://www.iweishi.cn/files/default/2017/09-27/143643bd9c30299246.jpg
         * buyable : 1
         * type : normal
         * teacherIds : ["43"]
         */

        private String id;
        private String title;
        private String status;
        private String price;
        private String startTime;
        private String endTime;
        private String endShopTime;
        private String studentNum;
        private String maxStudentNum;
        private String about;
        private String question;
        private String qqqun;
        private String book;
        private String isbook;
        private String largePicture;
        private String buyable;
        private String type;
        private List<String> teacherIds;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getEndShopTime() {
            return endShopTime;
        }

        public void setEndShopTime(String endShopTime) {
            this.endShopTime = endShopTime;
        }

        public String getStudentNum() {
            return studentNum;
        }

        public void setStudentNum(String studentNum) {
            this.studentNum = studentNum;
        }

        public String getMaxStudentNum() {
            return maxStudentNum;
        }

        public void setMaxStudentNum(String maxStudentNum) {
            this.maxStudentNum = maxStudentNum;
        }

        public String getAbout() {
            return about;
        }

        public void setAbout(String about) {
            this.about = about;
        }

        public String getQuestion() {
            return question;
        }

        public void setQuestion(String question) {
            this.question = question;
        }

        public String getQqqun() {
            return qqqun;
        }

        public void setQqqun(String qqqun) {
            this.qqqun = qqqun;
        }

        public String getBook() {
            return book;
        }

        public void setBook(String book) {
            this.book = book;
        }

        public String getIsbook() {
            return isbook;
        }

        public void setIsbook(String isbook) {
            this.isbook = isbook;
        }

        public String getLargePicture() {
            return largePicture;
        }

        public void setLargePicture(String largePicture) {
            this.largePicture = largePicture;
        }

        public String getBuyable() {
            return buyable;
        }

        public void setBuyable(String buyable) {
            this.buyable = buyable;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public List<String> getTeacherIds() {
            return teacherIds;
        }

        public void setTeacherIds(List<String> teacherIds) {
            this.teacherIds = teacherIds;
        }
    }

    public static class CouponsBean {
        /**
         * coupcounts : 0
         * couponslist : []
         * text : 暂无可用优惠券
         */

        private String coupcounts;
        private String text;
        private List<?> couponslist;

        public String getCoupcounts() {
            return coupcounts;
        }

        public void setCoupcounts(String coupcounts) {
            this.coupcounts = coupcounts;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public List<?> getCouponslist() {
            return couponslist;
        }

        public void setCouponslist(List<?> couponslist) {
            this.couponslist = couponslist;
        }
    }

    public static class AddressBean {
        /**
         * address_id : 2380
         * user_id : 1
         * user_name : Liu
         * province : 山东
         * city : 烟台
         * district : 芝罘区
         * address : Hhhhh
         * mobile : 18812341234
         */

        private String address_id;
        private String user_id;
        private String user_name;
        private String province;
        private String city;
        private String district;
        private String address;
        private String mobile;

        public String getAddress_id() {
            return address_id;
        }

        public void setAddress_id(String address_id) {
            this.address_id = address_id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getUser_name() {
            return user_name;
        }

        public void setUser_name(String user_name) {
            this.user_name = user_name;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getDistrict() {
            return district;
        }

        public void setDistrict(String district) {
            this.district = district;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }
    }
}
